//
//  OneWayMgr.h
//  carcareIOS
//
//  Created by ileo on 15/6/26.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseModel.h"
#import <CoreLocation/CoreLocation.h>

typedef NS_ENUM(NSInteger, GPS_TYPE){
    GPS_UP = 1,//急加速
    GPS_DOWN = 2,//急减速
    GPS_TURN = 3,//急转弯
    GPS_SHAKE = 4,//异常震动
    GPS_NORMAL = 0,
    
    GPS_BEGIN,
    GPS_END,
    GPS_ONWAY
};

@interface WayGpsInfoModel : BaseModel
/*
 X	Decimal(3,1)		-1 ~ 1	为正表示急加速，为负表示急减速
 科联星急加速为0.8紧急加速为1
 Y	Decimal(3,1)		-1 ~ 1	急转弯
 Z	Decimal(3,1)		-1 ~ 1	异常震动
 */
@property (nonatomic, assign) double lat;
@property (nonatomic, assign) double lng;
@property (nonatomic, assign) NSInteger SPEED;//速度
@property (nonatomic, copy) NSString *TIME_STAMP;//时间
@property (nonatomic , assign) NSInteger X;
@property (nonatomic , assign) NSInteger Y;
@property (nonatomic , assign) NSInteger Z;

@property (nonatomic, assign) NSInteger type;
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property (nonatomic, assign) GPS_TYPE beginEnd;

@end

@interface OneWayMgr : NSObject

//拉取某天一次行程的轨迹
-(void)getGpsWithStartTime:(NSString *)startTime withEndTime:(NSString *)endTime Success:(void(^)(NSArray *gpss, NSArray *types))success fail:(void(^)())fail;

@property (nonatomic , assign)NSInteger speedUpTimes;//急加速次数
@property (nonatomic , assign)NSInteger speedDownTimes;//急减速次数


@end